import { http } from '@/utils/http'

export const getFollowRecordListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/followRecord/list',
    data,
  })
}

export const getFollowRecordAPI = (followRecordId: number | string) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/followRecord/' + followRecordId,
  })
}

export const deleteFollowRecordAPI = (followRecordId: number | string) => {
  return http<any[]>({
    method: 'DELETE',
    url: '/mobile/customer/followRecord/' + followRecordId,
  })
}

export const postFollowRecordAPI = (data: any) => {
  return http<any[]>({
    method: 'POST',
    url: '/mobile/customer/followRecord',
    data,
  })
}

export const putFollowRecordAPI = (data: any) => {
  return http<any[]>({
    method: 'PUT',
    url: '/mobile/customer/followRecord',
    data,
  })
}
